import RPi.GPIO as GPIO

# 按物理位置找接口
import time

GPIO.setmode(GPIO.BOARD)

# 7号口负责输出电压
GPIO.setup(7, GPIO.OUT)

try:
    GPIO.output(7, GPIO.HIGH)
    time.sleep(0.2)
    GPIO.output(7, GPIO.LOW)
    time.sleep(0.2)
    pass
except KeyboardInterrupt:
    pass
GPIO.cleanup()
